import request from '@/utils/request'

export function findAddress(query) {
  return request({
    url: '/address/select',
    method: 'get',
    params: query // 表单数据
  })
}

export function deleteAddress(addressId) {
  console.log(addressId)
  return request({
    url: '/address/delete',
    method: 'get',
    params: { 'addressId': addressId }// form
  })
}
export function addAddress(query) {
  return request({
    url: '/address/add',
    method: 'get',
    params: query
  })
}

export function findRegin(data) {
  console.log('123124124')
  return request({
    url: '/select/allRegin',
    method: 'get',
    params: data
  })
}
